<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 根据不同的分辨率去加载相对应的css文件实现响应式布局 -->
    <!-- 当媒体类型是屏幕，且宽度<1360px加载pc-style.css -->
    <link rel="stylesheet" href="./css/pc-style.css" media="all and (min-width:1360px)" >
    <!-- 当媒体类型是屏幕，960px<宽度<1360px加载pad-style.css -->
    <link rel="stylesheet" href="./css/pad-style.css" media="all and (min-width:961px) and (max-width:1359px)" >
    <!-- 当媒体类型是屏幕，且宽度<960px加载phone-style.css -->
    <link rel="stylesheet" href="./css/phone-style.css" media="all and (max-width:960px)" >
    <title>Document</title>
    <style>
        @media all  and (max-width: 800px){
         .p1{
             color: palevioletred;
         }
        }
        @media all  and (min-width: 820px){
         .p1{
             color: rgb(132, 170, 167);
         }
        }
    </style>
</head>
<body>
    <h2>媒体查询</h2>
    <p class="p1">写在css文件里面的媒体查询语句</p>
</body>
</html>